package net.maku.wx.convert;

import net.maku.framework.security.user.UserDetail;
import net.maku.wx.entity.WxUserEntity;
import net.maku.wx.vo.WxUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 开发者
*
* @author Macro 
* @since 1.0.0 2022-09-01
*/
@Mapper
public interface WxUserConvert {
    WxUserConvert INSTANCE = Mappers.getMapper(WxUserConvert.class);

    UserDetail convertDetail(WxUserEntity userEntity);

    WxUserEntity convert(WxUserVO vo);

    WxUserVO convert(WxUserEntity entity);

    List<WxUserVO> convertList(List<WxUserEntity> list);
}